package cd.cdyb.sms.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author lin
 * @since 2024-05-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Recharge implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "recharge_id", type = IdType.AUTO)
    private Integer rechargeId;

    /**
     * 订单编号
     */
    private String orderNumber;

    /**
     * 公司id
     */
    private Integer companyId;

    /**
     * 公司名称
     */
    private String companyName;

    /**
     * 充值数量
     */
    private Integer rechargeQuantity;

    /**
     * 充值类型 5-营销 6-行业
     */
    private Integer rechargeType;

    /**
     * 费用
     */
    private BigDecimal expenses;

    /**
     * 操作人id
     */
    private Integer operatorId;

    /**
     * 操作人
     */
    private String operatorName;

    /**
     * 充值时间
     */
    private LocalDateTime rechargeTime;

    /**
     * 是否开票
     */
    private Boolean whetherInvoice;

    /**
     * 发票编号
     */
    private String invoiceNumber;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    /**
     * 是否删除 0-未删除 1-删除
     */
    @TableLogic
    private Boolean isDeleted;


}
